"""为应用程序users定义URL模式"""

from django.urls import path
from django.contrib.auth.views import LoginView, LogoutView

from . import views

app_name = 'users'
urlpatterns = [
    # 登录页面
    path('login/', LoginView.as_view(template_name='users/login.html'),
        name='login'),
    # 注销
    path('logout/', LogoutView.as_view(
        template_name='learning_logs/index.html'), name='logout'),
    # 注册页面
    path('register/', views.register, name='register'),
]